package com.biglead.orderservice.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.biglead.common.pojo.UserInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_order")
public class OrderInfo implements Serializable {
    private Long id;
    private Long userId;
    private String name;
    private BigDecimal price ;
    private Integer num;

    @TableField(exist = false)
    private UserInfo userInfo;
}
